/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class TestDemo {
    public static void main(String[] args) {
        double[] array = {5,6.3,7.5,9,1.1};
        System.out.println(sum(array));
    }

    public static double sum(double[] array){
        double n = 0.0;
        for (int i = 0; i < array.length; i++) {
            n += array[i];
        }
        return n;
    }
}
